package com.fengmi.mapper;

import com.fengmi.entity.CmsContentCat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author 123
 * @Date 2022/2/10 11:12
 * @Version 1.0
 */

/**
 * 内容管理的 mapper层
 */
public interface ContentMapper {
    //查询所有的内容分类
    @Select("select * from cms_content_cat")
    List<CmsContentCat> findAllContentCategory();

    //修改分类
    @Update("update cms_content_cat set name = #{name} where id = #{id}")
    public int updateContentCategoryById(CmsContentCat cmsContentCat);
}

